package org.liang.system.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.liang.auth.dto.LoginDTO;
import org.liang.base.mapper.BaseMapper;
import org.liang.system.domain.Employee;
import org.liang.system.domain.EmployeeDTO;

import java.util.List;


@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {
    Employee selectByUserName(LoginDTO loginDTO);

    void batchInsert(List<EmployeeDTO> list);

    List<EmployeeDTO> queryAll(@Param("key") String key);
    List<EmployeeDTO> queryAll();

    List<String> selectPermissionSnsById(Long id);
}
